﻿using mozhi.smarterp.BasicData.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace mozhi.smarterp.BasicData.Products
{
    public class ProductCreateDto
    {
        [Required]
        public string Code { get; set; }

        [Required]
        public string Name { get; set; }

        public bool Activated { set; get; }

        [Required]
        public ProductType Type { get; set; }

        public Guid? ImageId { get; set; }

        public string BarCode { get; set; }

        public string Model { get; set; }

        public Guid? DefatultTaxRateId { get; set; }

        public Guid? DefaultSupplierId { get; set; }

        [Required]
        public bool Saleable { get; set; }

        [Required]
        public bool Purchasable { get; set; }

        /// <summary>
        /// 可生产的
        /// </summary>
        [Required]
        public bool Producible { get; set; }

        /// <summary>
        /// 可委外
        /// </summary>
        [Required]
        public bool Outsourceable { get; set; }

        /// <summary>
        /// 可资产
        /// </summary>
        public bool Assetable { get; set; }

        /// <summary>
        /// 基本单位
        /// </summary>
        [Required]
        public Guid BasicUnitId { get; set; }
    }
}
